//
//  UIWebView+Extend.m
//  CFFinanceProject
//
//  Created by chunfeng on 2018/4/9.
//  Copyright © 2018年 xiaowen. All rights reserved.
//

#import "UIWebView+Extend.h"

@implementation UIWebView (Extend)


-(void)loadHttpUrl:(NSString *)urlString
{
    [self loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
}

-(void)loadLocalFileByFileName:(NSString *)fileName fileType:(NSString *)fileType{
    NSString *docPath = [[NSBundle mainBundle] pathForResource:fileName ofType:fileType];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:docPath]];
    [self loadRequest:request];
}

@end
